package com.bing.utils;


import com.sun.xml.bind.marshaller.CharacterEscapeHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.io.Writer;

/**
 * Created by kaibb on 2014/11/30.
 */

public class MyCharacterEscapeHandler implements CharacterEscapeHandler {
    private Logger logger = LoggerFactory.getLogger(MyCharacterEscapeHandler.class);

    @Override
    public void escape(char[] ch, int start, int length, boolean isAttVal,
                       Writer writer) throws IOException {
       /* logger.debug("escape:{}", ch);*/
        writer.write(ch, start, length);
    }
}
